package cn.minsh.lims.eoms.modules.app.controller.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author Administrator
 */
@Data
@ApiModel("巡检工单")
public class UserInspectionPlanRes {
    @ApiModelProperty("工单id")
    private Long id = -1L ;
    @ApiModelProperty("工单编号")
    private String code = "" ;
    @ApiModelProperty("巡检工单名称")
    private String name = "" ;

    @ApiModelProperty("巡检范围，范围id（Long）列表")
    private List<Long> scopeList;
    @ApiModelProperty("巡检开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date planStartTime ;
    @ApiModelProperty("首次结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date planEndTime ;
    @ApiModelProperty("巡检时间范围")
    private String planTimeScope = "";

    @ApiModelProperty("发起人")
    private Long createBy =-1L;
    @ApiModelProperty("经办人id列表")
    private List<Long> agentIdList ;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime ;
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date updateTime ;
    @ApiModelProperty("工单状态：1：未开始2进行中3已结束")
    private Integer status = -1;
    @ApiModelProperty("工单状态描述")
    private String statusDesc = "" ;
    @ApiModelProperty("巡检结果：1正常2有异常3逾期未检测")
    private Integer result = -1;
    @ApiModelProperty("巡检结果描述")
    private String resultDesc ="";
    @ApiModelProperty("完成时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm")
    private Date complateTime ;
    @ApiModelProperty("频率")
    private Integer frequency ;
    @ApiModelProperty("频率描述")
    private String frequencyDesc ;


}
